import homeJson from '../pages/home';
import userJson from '../pages/user';
import roleJson from '../pages/role';
import menuJson from '../pages/menu';

export default {
  pages: [
    {
      children: [
        {
          label: '首页',
          url: '/home',
          icon: 'fa fa-home',
          schema: homeJson,
        },
      ],
    },
    {
      children: [
        {
          label: '系统设置',
          url: '/system',
          icon: 'fa fa-gear',
          rewrite: '/system/config',
          children: [
            {
              label: '用户管理',
              url: '/system/user',
              schema: userJson,
            },
            {
              label: '菜单管理',
              url: '/system/menu',
              schema: menuJson,
            },
            {
              label: '角色管理',
              url: '/system/role',
              schema: roleJson,
            },
            {
              label: '系统配置',
              url: '/system/config',
              schema: {
                type: 'page',
                title: '页面A-1',
                body: '系统配置',
              },
            },
          ],
        },
      ],
    },
  ],
};
